import request from '@/utils/request';

/**
 * 帐号登录
 * @param {String} OprID - 用户名
 * @param {String} Pwd - 密码
 * @returns
 */
export function loginAPI(params) {
    return request({
        url: '/api/Login/cpisApi_LoginByYHM',
        method: 'get',
        params
    });
}

// 获取个人信息
export function getUserInfoAPI(params) {
    return request({
        url: '/api/Login/cpisApi_GetPersonInfo_ZBSB',
        method: 'get',
        params
    });
}
// 注册
export function getRegisterAPI(obj) {
    return request({
        url: `/api/Login/cpisApi_Register`,
        method: 'post',
        data: obj.Params
    });
}
// 获取验证码
export function getCodeAPI(params) {
    return request({
        url: `/api/Login/GCP_getSJYZM`,
        method: 'get',
        params
    });
}
// 忘记密码
export function getForgetPasswordAPI(params) {
    return request({
        url: '/api/Login/cpisApi_ChangePwd2',
        method: 'post',
        params
    });
}
// 修改密码
export function getChangePasswordAPI(params) {
    return request({
        url: '/api/Login/cpisApi_ChangePwd',
        method: 'post',
        params
    });
}
// 获取注册页面的下拉框信息
export function getSelectListAPI(params) {
    return request({
        url: '/api/Login/cpisApi_GetBaseInfo',
        method: 'get',
        params
    });
}
